import React from 'react';
import { PaperClipOutlined, DownloadOutlined } from '@ant-design/icons';
import { Space } from 'antd';
function FileList({ url, name }) {
  return (
    <div className="fileList-x">
      <div className="item">
        <Space>
          <PaperClipOutlined />
          <a href={url} download target="_blank">
            <Space>
              <span>{name}</span>
              <DownloadOutlined className="down-x" />
            </Space>
          </a>
        </Space>
      </div>
    </div>
  );
}

export default FileList;
